import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { SharedModule } from '@shared/shared.module';

import { WidgetsComponent } from './widgets/widgets.component';
import {ModalComponent} from './widgets/modal.component';
import { StudentComponent } from './student/student.component';

const routes: Routes = [
  { path: '', component: WidgetsComponent },
  { path: 'widgets', component: WidgetsComponent },
  { path: 'student', component: StudentComponent }
];

@NgModule({
  imports: [
    SharedModule,
    RouterModule.forChild(routes)
  ],
  declarations: [
    WidgetsComponent,
      ModalComponent,
      StudentComponent
  ],
    entryComponents: [
        ModalComponent
    ],
  exports: [
    RouterModule
  ]
})
export class WidgetsModule { }
